package com.xb.cloud.front.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xb.cloud.front.common.FrontSearchService;
import com.xb.cloud.gateway.client.ReturnUtils;
import com.xb.cloud.gateway.client.RtnInfo;
import com.xb.cloud.product.search.service.client.SearchService;
import com.xb.cloud.product.search.service.client.bo.SearchRequestBo;
import com.xb.cloud.service.client.ServiceReturnInfo;

@Service
public class FrontSearchServiceImpl implements FrontSearchService {
	@Resource
	private SearchService searchService;

	@Override
	public RtnInfo searchByKeyword(SearchRequestBo requestBo) {
		ServiceReturnInfo searchResult = searchService.searchByKeyword(requestBo);
		return ReturnUtils.success(searchResult.getData());
	}

}
